import service from '@/utils/request'
// @Tags XhsAccessToken
// @Summary 创建xhsAccessToken表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.XhsAccessToken true "创建xhsAccessToken表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /xhsAccessToken/createXhsAccessToken [post]
export const createXhsAccessToken = (data) => {
  return service({
    url: '/xhsAccessToken/createXhsAccessToken',
    method: 'post',
    data
  })
}

// @Tags XhsAccessToken
// @Summary 删除xhsAccessToken表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.XhsAccessToken true "删除xhsAccessToken表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /xhsAccessToken/deleteXhsAccessToken [delete]
export const deleteXhsAccessToken = (params) => {
  return service({
    url: '/xhsAccessToken/deleteXhsAccessToken',
    method: 'delete',
    params
  })
}

// @Tags XhsAccessToken
// @Summary 批量删除xhsAccessToken表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除xhsAccessToken表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /xhsAccessToken/deleteXhsAccessToken [delete]
export const deleteXhsAccessTokenByIds = (params) => {
  return service({
    url: '/xhsAccessToken/deleteXhsAccessTokenByIds',
    method: 'delete',
    params
  })
}

// @Tags XhsAccessToken
// @Summary 更新xhsAccessToken表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.XhsAccessToken true "更新xhsAccessToken表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /xhsAccessToken/updateXhsAccessToken [put]
export const updateXhsAccessToken = (data) => {
  return service({
    url: '/xhsAccessToken/updateXhsAccessToken',
    method: 'put',
    data
  })
}

// @Tags XhsAccessToken
// @Summary 用id查询xhsAccessToken表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.XhsAccessToken true "用id查询xhsAccessToken表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /xhsAccessToken/findXhsAccessToken [get]
export const findXhsAccessToken = (params) => {
  return service({
    url: '/xhsAccessToken/findXhsAccessToken',
    method: 'get',
    params
  })
}

// @Tags XhsAccessToken
// @Summary 分页获取xhsAccessToken表列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取xhsAccessToken表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /xhsAccessToken/getXhsAccessTokenList [get]
export const getXhsAccessTokenList = (params) => {
  return service({
    url: '/xhsAccessToken/getXhsAccessTokenList',
    method: 'get',
    params
  })
}

// @Tags XhsAccessToken
// @Summary 不需要鉴权的xhsAccessToken表接口
// @accept application/json
// @Produce application/json
// @Param data query marketingReq.XhsAccessTokenSearch true "分页获取xhsAccessToken表列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /xhsAccessToken/getXhsAccessTokenPublic [get]
export const getXhsAccessTokenPublic = () => {
  return service({
    url: '/xhsAccessToken/getXhsAccessTokenPublic',
    method: 'get',
  })
}
